* {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    margin: 0;
    background: #f5f7fa;
    color: #1a1a1a;
}

.container {
    max-width: 900px;
    margin: 40px auto;
    background: #ffffff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(23, 43, 77, 0.1);
}

h1 {
    margin-top: 0;
    font-size: 28px;
}

.intro {
    font-size: 15px;
    line-height: 1.6;
    color: #4a5568;
}

.input-block {
    display: grid;
    gap: 16px;
    margin-top: 24px;
    margin-bottom: 24px;
}

label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: bold;
}

input[type="file"] {
    padding: 8px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
}

button {
    justify-self: start;
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s ease;
}

button:hover {
    background: #1d4ed8;
}

.status-block {
    padding: 16px;
    border-radius: 8px;
    background: #edf2ff;
    color: #1e40af;
    font-size: 14px;
}

.status-block.status-error {
    background: #fee2e2;
    color: #b91c1c;
}

.status-block p {
    margin: 0;
}

.hidden {
    display: none;
}

.preview-card {
    margin-top: 20px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 16px;
}

pre {
    white-space: pre-wrap;
    word-break: break-word;
    background: #ffffff;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

@media (max-width: 600px) {
    .container {
        margin: 16px;
        padding: 24px;
    }
}
